Conversation
|
I thought again about the subtitle tests, but did not find a reason to use |
|
Strange. The subtitle tests failed locally when using |
Stypox
left a comment
There was a problem hiding this comment.
I am not sure I understood your concern about captions. The video has captions, and currently the extractor is able to extract them, so assertFalse(... .isEmpty()) is correct.
.../schabi/newpipe/extractor/services/youtube/search/YoutubeSearchExtractorChannelOnlyTest.java
Outdated
Show resolved
Hide resolved
...chabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorControversialTest.java
Outdated
Show resolved
Hide resolved
...chabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorControversialTest.java
Outdated
Show resolved
Hide resolved
|
While you are at it, could you also fix these failing tests? and |
3e32222 to
2308b07
Compare
|
Regarding the first one: there are two links which are only extracted from youtube websites. That's why it should be save to set the service to youtube / pass the baseUrl. Hooray! Some other tests are failing now. But not at my local machine 🎉 |
Stypox
left a comment
There was a problem hiding this comment.
Oh ok, if tests succeed at your local machine the failing tests on tarvis can probably be ignored since they are most probably caused by service overloading.
This is ready (I would merge it but now I am from mobile), thank you!
|
Reran the tests and they finished without failing 🎉 |
Another attempt to fix some of the failing tests.
The
testViewCount()test is quite illogical becauseI guess the test's purpose was to check the channel's stream count and therefore modified and moved it.
Sometimes tests are good to find bugs :) I added a null check to
LinkHandlerFactory.fromUrl(String url, String baseUrl).These two tests drive me crazy:
Why is the subtitle list expected to be NOT empty? I think the only logical result is here to have an empty list.